package service

import (
	"seat-service/initialization"
	"seat-service/model"
)

type AvailableService struct {
}

func (*AvailableService) GetAll() (data []model.AvailableTime, err error) {
	err = initialization.DB.Find(&data).Error
	return data, err
}

func (*AvailableService) Save(par *model.AvailableTime) (err error) {
	err = initialization.DB.Save(par).Error
	return err
}
